package test;

public class Main {
    public static void main(String[] args) {
        AA aa = new BB();
        System.out.println(aa.i);
        System.out.println(aa.getSum());
        System.out.println(aa.getSum2());//动态绑定机制；属性走编译，方法走运行
    }
}